package spring.framework.beans.factory;

import spring.framework.beans.BeansException;

/**
 * @author pengzh
 * @class BeanFacotry
 * @since 2021-09-23
 * <p>
 * 提供访问spring容器方法的根接口
 */
public interface BeanFactory {

    Object getBean(String beanName) throws BeansException;

    Object getBean(String beanName, Object... args) throws BeansException;

    <T> T getBean(String beanName, Class<T> classType) throws BeansException;

    <T> T getBean(String beanName, Class<T> classType, Object... args) throws BeansException;

}
